package com.pinc.wacow;

import android.app.Activity;
import android.os.Bundle;
import android.view.WindowManager;
import android.webkit.WebView;

import com.pinc.wacow.R;

public class Pic_Viewer extends Activity{
	private WebView wv;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.pic_viewer);
		getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
		String image_name = getIntent().getStringExtra("image");

		wv = (WebView) findViewById(R.id.webView1);
		wv.getSettings().setBuiltInZoomControls(true);
		String html = String.format("<img src=\"%s\"></img", image_name);
		wv.loadDataWithBaseURL("file:///android_asset/", html, "text/html", "UTF-8", null);
	}
}
